package model

import (
	"context"
	"xorm.io/xorm"
)

type (
	User struct {
		Id   int64
		Name string
	}
	UserModel struct {
		db      *xorm.Engine
		session *xorm.Session
	}
)

func NewUserModel(db *xorm.Engine) *UserModel {
	return &UserModel{
		db: db,
	}
}

func (m *UserModel) FindOne(ctx context.Context, id int64) (*User, error) {
	var item User
	return &item, nil
}
